TaxCalculationProvider

The TaxCalculationProvider section of the web.config file allows you to assign a tax calculation provider for your Kore Commerce system, which determines how sales tax will be calculated on orders. You can only select one provider to use for each KommerceServer website by setting the default attribute for the element. Nested within this element are the available providers supported and further described below.

Attribute

Use

KoreTaxCalculationProvider

Uses a simple lookup of the tax rate assigned to each shipping address for customers. This provider is dependent on the data sent from the back office through the KS_SALES_TAX, KS_CUSTOMERS, and KS_SHIP_ADDRS APIs. For new customers or drop shipments, tax can only be estimated by choosing the highest tax code for the ship to state for the order.

KourierTaxCalculationProvider

Works in conjunction with the Kourier REST endpoint. At checkout, Kore Commerce will pass the cart contents to the back office Kourier service KS_SALES_TAX, which will be responsible for sales tax calculation.

MicroAireTaxCalculationProvider

Custom provider for a specific customer. Contact Kore for any custom development requests.

AvalaraTaxProvider

Uses the Avalara AvaTax tax service.

Example Usage

<TaxCalculationProvider default="KoreTaxCalculationProvider">
   <providers>
     <clear />
     <add name="KoreTaxCalculationProvider" type="Koretech.KommerceServer.Providers.KoreTaxCalculationProvider, Koretech.KommerceServer" />
     <add name="KourierTaxCalculationProvider" type="Koretech.KommerceServer.Providers.KourierTaxCalculationProvider, Koretech.KommerceServer" />
     <add name="MicroAireTaxCalculationProvider" type="Koretech.KommerceServer.Providers.MicroAireTaxCalculationProvider, Koretech.KommerceServer" />
   </providers>
</TaxCalculationProvider>

Example Usage

  <TaxCalculationProvider default="AvalaraTaxProvider">
    <providers>
      <clear />
      <add name="AvalaraTaxProvider" type="Koretech.KommerceServer.Providers.AvalaraTaxProvider, Koretech.KommerceServer"
           account="2000103530" license="435ADBD16622F005" company="DEFAULT" exempt="false" sandbox="false" />
    </providers>
  </TaxCalculationProvider>

AvalaraTaxProvider takes the following parameters:

Parameters

Description

Account

The Avalar AvaTax account ID.

License

The Avalara AvaTax license key for the account.

Company

The company identifier in Avalara AvaTax that is the seller in the transaction.

Exempt

A flag that conrtols whether the tax exempt flag on customers is ignored. If true, the AvaTax API will not be called when the customer is flagged as exempt.

Sandbox

A flag that conrtols which AvaTax environment to use. If true, use the sandbox environment, otherwise use the production environment.